package org.shijiagen.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class CartSaveParam {

    @NotNull(message = "用户id不能为空")
    @JsonProperty("user_id")
    private Integer userId;

    @NotNull(message = "商品id不能为空")
    @JsonProperty("product_id")
    private Integer productId;
}
